package com.xyz.service;

import com.xyz.dao.logic.SLotteryPeriodLogic;
import com.xyz.domain.table.SLotteryPeriod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LotteryPeriodService extends BaseService {

    @Autowired
    SLotteryPeriodLogic logic;

    public Integer getLotteryMaxPeriod(SLotteryPeriod period){
        return logic.getLotteryMaxPeriod(period);
    }

    public SLotteryPeriod addPeriodInfo(SLotteryPeriod period){
        return logic.add(period);
    }

    public SLotteryPeriod getCurrentLotteryPeriodInfo(String lotteryCode){return logic.getCurrentLotteryPeriodInfo(lotteryCode);}

}
